import http from "@/http/index"

// 解绑微信(登录状态下)
export const ApiUnbindingWeChat = (): RES<IGetData<string>> => http.put('/wechatUsers/unbindingWeChat')

// 查看购物车
export const ApiShopCarts = (): RES<IGetData<ICarData[]>> => http.get('/shop/carts')

// 购物车删除商品
export const ApiShopCartsProductIds = (id: number) :RES<IGetData<IDelete>>=> http.delete(`/shop/carts?productIds=${id}`)